<include file="public@header" />
</head>
<body>
	<div class="wrap">
		
		<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('TemplateGroup/toAdd')}">
			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label">模板类别<span class="form-required">*</span></label>
				<div class="col-md-6 col-sm-6">
					<select class="form-control" name="post[category_id]">
						<foreach name="data" item="vo">
							<if condition="$Request.param.id == $vo.category_id">
								<option value="{$vo.category_id}" selected>{$vo.name}</option>
							<else/>
								<option value="{$vo.category_id}">{$vo.name}</option>
							</if>
						</foreach>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label">表头ID</label>
				<div class="col-md-6 col-sm-6">
					<input type="text" class="form-control"  name="post[header_id]" >
				</div>
			</div>
			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label">模板ID<span class="form-required">*</span></label>
				<div class="col-md-6 col-sm-6">
					<input type="text" class="form-control"  required name="post[template_id]" >
				</div>
			</div>
			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label">表尾ID</label>
				<div class="col-md-6 col-sm-6">
					<input type="text" class="form-control"  name="post[footer_id]" >
				</div>
			</div>
			
				
			<div class="form-group button-a">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-primary js-ajax-submit">生成套件</button>
				</div>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/frontend.js"></script>
</body>
</html>